package com.gxa.order.controller;/*
 *Created by${妄也} on 2022/10/8
 */


import com.gxa.common.commons.R;
import com.gxa.order.pojo.OrderFormTz;
import com.gxa.order.service.xiaoxiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class xiaoxi {

    @Autowired
    private xiaoxiService xiaoxiService;
    @GetMapping("/findtz")
    public R addTZ(String username){
        return xiaoxiService.findTZ(username);
    }
    @GetMapping("/updata")
    public R updata(String id){
        return xiaoxiService.updata(id);
    }

    @PostMapping("/addA1")
    public R addA1(OrderFormTz orderFormTz){
        return xiaoxiService.addA1(orderFormTz);
    }
    @PostMapping("/addA2")
    public R addA2(OrderFormTz orderFormTz){
        return xiaoxiService.addA2(orderFormTz);
    }
    @PostMapping("/addA3")
    public R addA3(OrderFormTz orderFormTz){
        return xiaoxiService.addA3(orderFormTz);
    }
    @PostMapping("/addA4")
    public R addA4(OrderFormTz orderFormTz){
        return xiaoxiService.addA4(orderFormTz);
    }
    @PostMapping("/addA5")
    public R addA5(OrderFormTz orderFormTz){
        return xiaoxiService.addA5(orderFormTz);
    }
}
